﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<EnterpriseManagement.Models.ProjectDetailsModel>>" %>
<%@ Import Namespace="EnterpriseManagement.Models"%>
<%@ Import Namespace="System.Web.Mvc"%>

<h1>相关项目信息</h1>
<br /><br />
<br />
<%--<style type="text/css">
input[type="text"] 
{
	margin-left:auto;
    width: 100px;
    border: none;
}
</style>--%>
<div id="employeeprojects">
     <div id ="projectDetail" style="margin-left:3%"> 
        <%ProjectDetailsModel projectModel = Model.First();%>
        <table class ="noframe" >
        <tr>
            <td><%:Html.LabelFor(model => projectModel.ProjectName) %></td>  
            <td><%:Html.LabelFor(model => projectModel.ProjectType)%></td>
            <td><%:Html.LabelFor(model => projectModel.Importance)%></td>  
            <td><%:Html.LabelFor(model => projectModel.MainTechnology)%></td>   
            <td><%:Html.LabelFor(model => projectModel.StartTime)%></td>
            <td><%:Html.LabelFor(model => projectModel.EndTime)%></td>
            <td><%:Html.LabelFor(model => projectModel.BusinessField)%></td>
            <td><%:Html.LabelFor(model => projectModel.ClientName)%></td>
            <td><%:Html.LabelFor(model => projectModel.Department)%></td>
            <td><%:Html.LabelFor(model => projectModel.Manager)%></td>
            <td><%:Html.LabelFor(model => projectModel.NumberOfPeople)%></td>
            <td><%:Html.LabelFor(model => projectModel.ProjectStatus)%></td>
        </tr>
        <%foreach (ProjectDetailsModel model in Model)
          {%>
        <tr>
       <%-- <td ><%--<input type ="text" style ="border:none" value="2" />--%>
            <td class="display-field"><%: model.ProjectName  %></td> 
            <td class="display-field"><%: model.ProjectType%></td>
            <td class="display-field"><%: model.Importance%></td>
            <td class="display-field"><%: model.MainTechnology%></td>
            <td class="display-field"><%: model.StartTime%></td>
            <td class="display-field"><%: model.EndTime%></td>
            <td class="display-field"><%: model.BusinessField%></td>
            <td class="display-field"><%: model.ClientName%></td>
            <td class="display-field"><%: model.Department%></td>
            <td class="display-field"><%: model.Manager%></td>
            <td class="display-field"><%: model.NumberOfPeople%></td>
            <td class="display-field"><%: model.ProjectStatus%></td>
            <td id="tdnoline"><%:Ajax.ActionLink("项目成员", "TeamMember","Project", new { projectName = model.ProjectName.Trim() }, new AjaxOptions { UpdateTargetId = "teammembers", HttpMethod = "GET" })%></td>
           
        </tr>
        <%} %>
        </table>
        <br />
        </div>

        <div id="teammembers">
        
        </div>
        
    </div>
    